﻿import QtQuick 2.0
import QtQuick.Window 2.12

import "../components"

// 录入条码弹窗
Window {
    id: root

    height: 360*dp; width: 420*dp
    title: "录入耗材编码"

    modality: Qt.WindowModal
    flags: Qt.Window | Qt.WindowTitleHint |Qt.WindowSystemMenuHint | Qt.WindowCloseButtonHint

    onHeightChanged: {
        height = 360*dp
        width = 420*dp
    }

    Rectangle{
        id: layout_top
        x: 10*dp; width: parent.width - 2*x
        y: 10*dp; height: 260*dp

        border.color: "#CCCCCC"

        Column{
            spacing: 50*dp
            width: parent.width
            CustomTabButton{
                id: tabButton_
                model: ["条码枪录入", "手动录入"]
                topPadding: 1; leftPadding: 1
                buttonH: 50*dp
                buttonW: 120*dp
                button_color_select: "white"
                borderline_posi: 1
                borderline_color_select: "#1677FF"
                button_color: "transparent"
                button_radius: 0
                color: "#F8F8F8"
                border.color: "#CCCCCC"
                width: parent.width
            }
            CustomInputText{
                id: edit_code

                title: "条码"
                x: 0.5 * (parent.width - width)
            }
        }

    }
    CustomButton{
        defaultMode1: true
        title: "确定"
        y: 300*dp
        x: (parent.width - width) * 0.5
    }

}
